minios: xmalloc and realloc fixes
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Oct 2009 08:34:51 +0000 (08:34 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 29 Oct 2009 08:34:51 +0000 (08:34 +0000)
commit4e69eb152ebb1f81b539eb4c1decb372ad29242b
treed0b0335d2096273e81125666bd8d4c5f511bfddd
parenta7a8dc9942ca7c22d931751e9def47c76471dcbb
minios: xmalloc and realloc fixes

 - xmalloc currently faults if xmalloc_new_page fails due to OOM
 - realloc treats xmalloc_hdr.size as the size of just the data region
   rather than the total size of data region + headers + padding.

From: James Pendergrass <James.Pendergrass@jhuapl.edu>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
extras/mini-os/lib/xmalloc.c